//
//  VC2Layer.swift
//  ChapterAll
//
//  Created by Kevin on 2020/4/22.
//  Copyright © 2020 Kevin. All rights reserved.
//

import UIKit

class VC2Layer: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let btn = UIButton(type: .custom)
        btn.backgroundColor = UIColor.red
        btn.layer.shadowOpacity = 1
        btn.layer.shadowColor = UIColor.gray.cgColor
        btn.layer.shadowOffset = CGSize(width: 10, height: 10)
        btn.frame = CGRect(x: 100, y: 100, width: 200, height: 200)
        view.addSubview(btn)
    }
}
